package ch.supsi.gavdat.elevator.model;

import java.util.Random;

public abstract class PersistentObject {
	private Integer id;
	
	public PersistentObject(){
		setId(Math.abs(new Random().nextInt(100000)));
	}
	
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getId() {
		return id;
	}
	
}